import $request from '@/util/request'; //axios与后台交换ajax(异步)框架

/**
 * 查询电影所有类型
 */
export const movieTypesApi=()=>{
	return $request({
	  method: 'get',
	  url: '/movie/getMovieTypes',
	});
}
	
export const findAllMoviesApi = (currPage, pageSize) => {
	return $request({
		method: 'get',
		url: '/movie/findAllMovies?curr='+currPage+"&pageSize="+pageSize
	});
}


export const movieAddApi=(p)=>{
	return $request({
		method:'post',
		url:'/movie/addMovie',
		data:p
	});
}

export const findByKeywordsApi =(keyword)=>{
	return $request({
		method: 'get',
		url: '/movie/findMoviesByKeywords?keywords='+keyword,
		
	});
}

export const findCurrentReleaseMovieApi =(pageSize)=>{
	return $request({
		method: 'get',
		url: '/movie/findCurrentReleaseMovie?pageSize='+pageSize,	
	});
}


